<?php
$loai = $lsp->getListLoaiSP();

if (isset($_POST['btnSumit'])) {
    $thanhcong = $kieu->Kieu_Them($loi);
    if ($thanhcong == true) {
        header("location:?com=kieu_list");
    }
}
?>
<form action="" method="post" name="form_add_dm_tour">
    <div id="admin_navigation">
        <div style="float:left;width:90%">
            <h3>Quản lý kiểu : Thêm mới</h3>
        </div>
        <div style="float:left;width:5%;padding-top:5px">
            <input type="submit" class="save" name="btnSumit" value=""/><br />		
            <span>Save</span>
        </div>
        <div style="float:left;width:5%;padding-top:5px">
            <input type="reset" class="cancel" name="btnCancel" value=""/><br />		
            <span>Reset</span>
        </div>
        <div class="clr"></div>
    </div>
    <div id="main_admin">

        <div id="main_left">
            <fieldset>
                <legend>Thông tin chi tiết</legend>
                <table>
                    <tr>
                    	<td>Loại SP</td>
                        <td colspan="3">
                            <select name="loai_id">
                                <?php while($row_loai = mysql_fetch_assoc($loai)){ ?>
                                <option value="<?php echo $row_loai['loai_id'];?>"><?php echo $row_loai['loai'];?></option>
                                <?php } ?>
                            </select>                
                        </td>   
                    </tr>
                    <tr>
                        <td class="left">Kiểu</td>
                        <td>
                            <input type="text" name="kieu" id="kieu" class="tf" />
                            <span class="error"><?php echo $loi['kieu']; ?></span>                 
                        </td>                        
                    </tr>   
                    <tr>
                        <td class="left">&nbsp;</td>
                        <td>&nbsp;

                        </td>                        
                    </tr>
                </table>

            </fieldset>
        </div>


        <div class="clr"></div>
    </div>
</form>